<?php
/**
 * Select a corresponding Agency
 */
use Fox\Common\Customer;
use Fox\Html\Block;
// Agencies
$finder = new Customer();
$agencies = $finder->find(new Fox\Dao\SqlFragment("type = ?",array(Customer::TYPE_OFFICE)));

$block = new Fox\Html\Block("bAdditionnalData",Msg(Fox::MSGCL,61));
// Operationnal Assignement
$block->add(new Fox\Html\DropList\CheckBox("op_entity",null,null,null,null,null,Fox\Html\DropList\CheckBox::RMODE_VERTICAL))
				->nbOfItemByBlock(3)
				->mandatory()
				->options($agencies,Fox\Generator::useAttribute('customerid'),
								Fox\Generator::useAttribute('name1'));
return $block;